package com.bruce.user.service.mapper;

import com.bruce.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author Bruce
 */
@Mapper
public interface UserMapper {
    @Select("select * from tb_user where name like concat('%', #{name}, '%')")
    List<User> getUserByName(String name);
}
